package org.will.ddd.eventing;

/**
 * Created by EdifierWill on 2016/8/10.
 */
public interface IDomainEvent<TAggregateRootId> {

    TAggregateRootId getAggregateRootId();
    void setAggregateRootId(TAggregateRootId id);

    int getVersion();
    void setVersion(int version);
}
